@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}


/* 导航栏部分 */

#bar {
    width: 100%;
    height: 60px;
    background-color: black;
}

#bar ul li {
    width: 150px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    float: left;
}

#bar ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

#bar ul li a:hover {
    color: yellowgreen;
}

#bar ul li .ul_2 {
    display: none;
    position: relative;
    z-index: 5;
}

#bar ul>li:hover .ul_2 {
    display: block;
}

#bar ul div {
    position: absolute;
    right: 0;
}


/*选项卡*/

#img {
    width: 100%;
    height: 600px;
    background-image: url(../scss练习/img/带字横kv.jpg);
    background-size: cover;
    position: relative;
}

#img input {
    display: none;
}

#img label {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: aquamarine;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-left: 10px;
    position: relative;
    z-index: 5;
    top: 500px;
}

#img div {
    width: 100%;
    height: 600px;
    /* background-color: blueviolet; */
    position: absolute;
    top: 0px;
    z-index: 1;
    background-size: cover;
}

#img #img1:checked+label,
#img #img2:checked+label,
#img #img3:checked+label,
#img #img4:checked+label,
#img #img5:checked+label {
    background-color: coral;
}

#img #img1:checked~div {
    background-image: url(../scss练习/img/WechatIMG449PC.jpg);
}

#img #img1:checked~div {
    background-image: url(../scss练习/img/WechatIMG449PC.jpg);
}

#img #img2:checked~div {
    background-image: url(../scss练习/img/Hero_desktop\ 2.jpg);
}

#img #img3:checked~div {
    background-image: url(../scss练习/img/LV_7-8-anteriore.jpg);
}

#img #img4:checked~div {
    background-image: url(../scss练习/img/WechatIMG449PC.jpg);
}

#img #img5:checked~div {
    background-image: url(../scss练习/img/LV_7-8-anteriore.jpg);
}


/* 车型 */

#car {
    width: 100%;
    height: 500px;
}

#car #car_1 {
    height: 80px;
    background-color: rgb(78, 75, 75);
    color: aliceblue;
    font-size: 16px;
    line-height: 80px;
}

#car #car_1 b {
    font-size: 28px;
    margin-left: 50px;
    margin-right: 150px;
}

#car #car_2 {
    width: 90%;
    height: 300px;
    margin: 60px auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    /* background-color: aquamarine; */
}

#car #car_2 div {
    width: 250px;
    height: 300px;
    /* border: 1px solid black; */
    position: relative;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

#car #car_2 span {
    position: absolute;
    bottom: 45px;
    left: 100px;
}

#car #car_2 p {
    position: absolute;
    top: 20px;
    left: 100px;
}

#car #car_2 button {
    position: absolute;
    bottom: 10px;
    left: 90px;
    width: 90px;
    background-color: black;
    color: white;
}

#car #car_2 div:nth-child(1) {
    background-image: url(../scss练习/img/203870M_.jpg);
}

#car #car_2 div:nth-child(2) {
    background-image: url(../scss练习/img/203870M_.jpg);
}

#car #car_2 div:nth-child(3) {
    background-image: url(../scss练习/img/203870M_.jpg);
}

#car #car_2 div:nth-child(4) {
    background-image: url(../scss练习/img/203870M_.jpg);
}

#car #car_2 div:nth-child(5) {
    background-image: url(../scss练习/img/203870M_.jpg);
}

#car #car_2 div:hover {
    transform: translate(0, -3px);
    transition: 0.9s;
    box-shadow: 0 4px 10px gray;
}


/* 玛莎拉蒂 */

#dh {
    width: 100%;
    height: 500px;
}

#dh h3 {
    margin-left: 100px;
}

#dh div {
    width: 95%;
    margin: 10px auto;
    height: 480px;
    display: flex;
    justify-content: space-around;
}

#dh div div {
    width: 300px;
    height: 400px;
    margin-left: 30px;
    border: 1px solid black;
    overflow: hidden;
}

#dh div div:hover img {
    transition: 1s;
    transform: scale(1.5);
}


/* 版权部分 */

#footer {
    width: 100%;
    height: 300px;
    background-color: black;
    display: flex;
    justify-content: space-between;
}

#footer div {
    width: 20%;
    height: 300px;
    text-align: center;
    color: white;
}

#footer div ul {
    margin-top: 80px;
    text-align: left;
}

#footer div p {
    margin-top: 100px;
}

#footer div button {
    margin-top: 10px;
    width: 180px;
    height: 32px;
    line-height: 32px;
    background-color: white;
    color: black;
}

#footer div img {
    margin-top: 90px;
}